package com.example.day07;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.RandomAccessFile;

public class CheckedExceptionTest {
    public static void main(String[] args) {
        try{
            RandomAccessFile randomAccessFile = new RandomAccessFile("D:/test.txt","rw");
            randomAccessFile.writeChar(65);
        } catch (FileNotFoundException e){
            throw new RuntimeException(e);
        } catch (IOException e){
            throw new RuntimeException(e);
        }
    }
}
